package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.WwGroupTags;
import com.xjscrm.console.param.group.WwGroupTagQuery;
import com.xjscrm.console.vo.WwGroupTagsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WwGroupTagMapper {
    WwGroupTags getById(@Param("id") Long tagId, @Param("merId") Long merId);


    int insertWwGroupTags(WwGroupTags wwGroupTags);

    List<WwGroupTagsVo> getWwGroupTag(WwGroupTagQuery wwGroupTagQuery);

    int deleById(@Param("id") Long tagId, @Param("merId") Long merId);

    void updateWwGroupTags(WwGroupTags wwGroupTags);


    List<WwGroupTags> selectListByIds(@Param("merId") Long merId, @Param("ids") List<Long> tagIds);
}
